<?php
class Export extends EExcelView {
	
	private $_style = array();
	
	public static function toExcel($dataProvider, $style=array()) {
		Yii::app()->controller->widget('application.extensions.EExcelView', array(
				'dataProvider'=> $dataProvider,
				'title'=>'Title',
				'grid_mode'	=> 'export',
				'filename'=>'report.xlsx',
				'stream'=>true,
				'exportType'=>'Excel2007',
				'autoWidth'=>false,
		));
	}
}